PackageTool is an application illustrating how to create application packages in Mac OS 9. It provides a simple interface for converting correctly formatted folders into packages and vice versa.
Mac OS 9 Package Related techniques illustrated include:
You may incorporate this sample code into your applications without restriction, though the sample code has been provided "AS IS" and the responsibility for its operation is 100% yours. However, what you are not permitted to do is to redistribute the source as "DSC Sample Code" after having made changes. If you're going to re-distribute the source, we require that you make it clear in the source that the code was descended from Apple Sample Code, but that you've made changes.
':Sample Package:' - an example package including the 'package aware' HTMLSample application. Therein you will find an example package document and an example package application.
MakeFile - MPW make file.
PackageTool - the PackageTool application.
PackageTool.c - main program and event dispatching for the PackageTool application.
PackageTool.h - constant definitions and routine prototypes for the PackageTool application.
PackageTool.prj - CodeWarrior project file for building the application.
PackageTool.r - MPW Rez file the the application.
PackageTool.rsrc - ResEdit resource file for the resources used in the application.
PackageUtils.c - Utilities package savy applications can use for identifying packages.
PackageUtils.h - routine prototypes for routines defined in PackageUtils.c.
PackageWindow.c - routines implementing the window displayed by the PackageTool application.
PackageWindow.h - routine prototypes for routines defined in PackageWindow.c.
'Re- C/F Registration Request' - creator file type registration for the PackageTool application.
ReadMe - see ReadMe.
SimplePrefs.c - routines for implementing preferences files as a datafork containing a flattened collection.
SimplePrefs.h - routine prototypes for routines defined in SimplePrefs.c.
Utilities.c - utility routines set aside to simplify the main example.
Utilities.h - routine prototypes for routines defined in Utilities.c.